const Koa = require('koa')
const koaStatic = require('koa-static')
const path = require('path')
const {historyApiFallback } = require('koa2-connect-history-api-fallback')
const localhost = 80
const app = new Koa()
app.use(historyApiFallback())
app.use(koaStatic(path.join(__dirname + '/build/')))
app.listen(localhost, () => {
  console.log(`服务已启动: localhost:${localhost}`)
})
